package chapter04.example20;
class Outer{
    int m=0;
    void test1(){
        System.out.println("外部类成员方法test1()");
    }
class Inner {
    int n = 1;

    void show1() {
        System.out.println("外部成员变量m=" + m);
        test1();
    }
    void show2(){
        System.out.println("内部成员方法show2()");
    }
}
void test2() {
    Inner inner=new Inner();
    System.out.println("内部成员变量n="+inner.n);
}
}
public class example20 {
    public static void main(String[] args){
        Outer outer=new Outer();
        Outer.Inner inner= outer.new Inner();
        inner.show1();
        outer.test2();
    }
}
